/**
 * 路由视图地址配置
 */

/**
 * 引入module文件
 */
import home_router from './../modules/home/config/router';
import jcsz_router from './../modules/jcsz/config/router';
import bmqk_router from './../modules/bmqk/config/router';
import fdb_router from './../modules/fdb/config/router';
import jffs_router from './../modules/jffs/config/router';
import qtbm_router from './../modules/qtbm/config/router';

import login from './../common/components/Login';

const routers = [];

if(home_router != null) {
	routers.push(home_router);
}
if(jcsz_router != null) {
	routers.push(jcsz_router);
}
if(bmqk_router != null) {
	routers.push(bmqk_router);
}
if(fdb_router != null) {
	routers.push(fdb_router);
}
if(jffs_router != null) {
	routers.push(jffs_router);
}

if(qtbm_router != null) {
	routers.push(qtbm_router);
}


export default [{
		path: "/",
		redirect: "/home"
	}, {
		path: "",
		redirect: "/home"
	},
	{
		path: "/login",
		component: login
	},
	...routers
];